package com.yuanfeng.activity.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanfeng.activity.entity.ActivitySpinwinLuckyDrawTimesEntity;
import com.yuanfeng.activity.mapper.ActivitySpinwinLuckyDrawTimesMapper;
import com.yuanfeng.activity.service.ActivitySpinwinLuckyDrawTimesService;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.commoms.util.querypage.PageUtils;
import com.yuanfeng.commoms.util.querypage.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 *
 */
@Service
public class ActivitySpinwinLuckyDrawTimesServiceImpl extends ServiceImpl<ActivitySpinwinLuckyDrawTimesMapper, ActivitySpinwinLuckyDrawTimesEntity>
    implements ActivitySpinwinLuckyDrawTimesService{

    @Override
    public ResponseResult queryLuckyDrawTimesList(Map<String, Object> param) {
        //分页查询数据
        IPage<ActivitySpinwinLuckyDrawTimesEntity> page=this.baseMapper.selectLuckyDrawTimesList(new Query<ActivitySpinwinLuckyDrawTimesEntity>().getPage(param),param);

        return ResponseResult.success(PageUtils.getPage(page));
    }
}




